<template>
  <el-table :data="list" style="width: 100%;padding-top: 15px;">
    <el-table-column label="挂单号ID" min-width="200">
      <template slot-scope="scope">
        {{ scope.row.regId }}
      </template>
    </el-table-column>
    <el-table-column label="患者姓名" min-width="200">
      <template slot-scope="scope">
        {{ scope.row.patiName }}
      </template>
    </el-table-column><el-table-column label="挂号科室" min-width="200">
    <template slot-scope="scope">
      {{ scope.row.regDepts }}
    </template>
  </el-table-column><el-table-column label="挂号类型" min-width="200">
    <template slot-scope="scope">
      {{ scope.row.regType }}
    </template>
  </el-table-column><el-table-column label="挂号时间" min-width="200">
    <template slot-scope="scope">
      {{ scope.row.regTime }}
    </template>
  </el-table-column>
  </el-table>
</template>

<script>
  import {listReg, getReg, delReg, addReg, updateReg} from "@/api/system/reg";


export default {
  filters: {
    statusFilter(status) {
      const statusMap = {
        success: 'success',
        pending: 'danger'
      }
      return statusMap[status]
    },
    orderNoFilter(str) {
      return str.substring(0, 30)
    }
  },
  data() {
    return {
      list: null
    }
  },
  created() {
    this.getList()
  },
  methods: {
    /** 查询挂号列表列表 */
    getList() {
      listReg(this.queryParams).then(response => {
        this.list = response.rows;
        this.total = response.total;
      });
    }
  }
}
</script>
